<!DOCTYPE html>
<html lang="{{lang_code}}">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="icon" href="/favicon.png" type="image/png"> 
    <title>i2pd tunnel wizard</title>
    <style>
        html, body {
            background-color: #f0f0f0;
            font-family: Arial, sans-serif;
            margin: 0;
            height: 100%;
            overflow-y: auto;
        }
        .container {
            max-width: 750px;
            width: 100%;
            margin: 20px auto;
            background-color: white;
            padding: 10px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }
        h1 {
            text-align: center;
        }
        .button {
            display: inline-block;
            padding: 10px 20px;
            background-color: #007bff;
            color: white;
            text-decoration: none;
            border-radius: 5px;
            font-size: 16px;
            transition: background-color 0.3s;
            margin: 20px;
        }
        .button:hover {
            background-color: #0056b3;
        }
        .error {
            background-color: #d9534f;
            color: white;
            padding: 15px;
            border-radius: 5px;
            font-size: 18px;
            text-align: center;
            margin: 20px;
        }
        footer {
            text-align: center;
            margin-top: 20px;
            font-size: 12px;
            color: #666;
            padding: 10px 0;
        }
    </style>
</head>
<body>

    <div class="container">
        <a href="/" style="text-decoration: none"><h1><span style="color: purple">i2pd</span> <span style="color: black">tunnel wizard</span></h1></a>
        <p style="text-align: center">{{tagline}}</p>

        <div class="error">
            {{text}}
        </div>
            
        <center><a href="/" class="button">{{go_back}}</a></center>
    </div>

    <footer>
        <div>
            <a href="{{url}}&lang=en">English</a> | <a href="{{url}}&lang=ru">Русский</a>
        </div>
        <div>
            <a href="https://notabug.org/acetone/i2pdtunnelwizard" target="_blank" style="text-decoration: none">i2pd tunnel wizard</a> v{{version}} <br>
            acetone, 2025 (no copyright)
        </div>
    </footer>

</body>
</html>
